package cn.liuxiany.alibaba.provider;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 利用spring cloud的原生注解@EnableDiscoveryClient表明此应用是nacos客户端
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableDubbo(scanBasePackages = {"cn.liuxiany.alibaba.provider.dubbo"})
@MapperScan("cn.liuxiany.alibaba.provider.mapper")
public class ProviderServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProviderServiceApplication.class, args);
    }

}